home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / pipeline / abacus / p_line / CmdFile2 / ReadMe < prev   
Encoding:
Text File  |  1992-02-02  |  1.6 KB  |  52 lines

  1. %OP%VS4.11 (04-Dec-91), Gerald Lewis Fitton, R4000 5065 0380 9644 
  2. %OP%DP0
  3. %OP%IRY
  4. %OP%PL0
  5. %OP%HM0
  6. %OP%FM0
  7. %OP%BM0
  8. %OP%LM4
  9. %OP%FX
  10. %OP%FY
  11. %OP%FS
  12. %OP%PT1
  13. %OP%PDPipeLine
  14. %OP%WC792,2058,228,1620,0,0,0,0
  15. %CO:A,72,72%
  16. %C%Making a Command File
  17. %C%by Gerald L Fitton
  18. Keywords:
  19. Command Macro Fitton
  20.  
  21. The easiest way to make a command file is to use the
  22. 'Command File record' facility.
  23.  
  24. I shall describe how to make a command file which searches for 'men' in 
  25. the DataFile and replaces it with 'persons'.
  26.  
  27. This is the method:
  28.  
  29.  1 Double click on [DataFile] to load it
  30.  2 Place the pointer within the [DataFile] window
  31.  3 Execute <Ctrl FY> to start recording
  32.  4 Type a suitable file name into the dialogue box
  33.  5 Tap <Return>
  34.  6 Execute <Ctrl BSE> (Block SEarch and replace)
  35.      changing men to person
  36.  7 Execute <Ctrl FY> to stop recording the command file
  37.  
  38. You can do anything you like at step 6.  In fact you can have a series 
  39. of steps to do something complex such as searching for the top of a 
  40. block (flagged by using 'B Fwd' as a marker), <Ctrl Z> to mark the top 
  41. of the block, search for the bottom of the block (flagged by 'C Fwd') 
  42. and mark it with <Ctrl Z>.  Then you can sort the marked block on 
  43. column A (where the date is), clear the markers with <Ctrl Q>, and then 
  44. move on to step 7.
  45.  
  46. Recording command files this way means that you don't have to learn all 
  47. the fancy commands, just start recording with <Ctrl FY>, do the job, 
  48. stop recording with a second <Ctrl FY>.
  49.  
  50. I have recorded two command files called [Men2Person] and [Person2Men].  
  51. One reverses the action of the other.
  52.